cmake_minimum_required(VERSION 2.6)
set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS ON)

project(shared)

###############################################################################

set(shared_SOURCES
	Log.hpp
	Log.cc
	Ini.hpp
	Ini.cc
	Common.hpp
	Common.cc
	Console.hpp
	Console.cc
	ProgressBar.hpp
	ProgressBar.cc
	
	auth/BigNumber.hpp
	auth/BigNumber.cc
	auth/Sha1.hpp
	auth/Sha1.cc
	auth/SRP6.hpp
	auth/SRP6.cc
	
	util/Util.hpp
	util/Util.cc
	util/ByteBuffer.hpp
	util/ByteBuffer.cc
	util/CircleBuffer.hpp
	util/CircleBuffer.inl
	util/MessageBlock.hpp
	
	database/SqlField.hpp
	database/SqlField.cc
	database/SqlResultSet.hpp
	database/SqlResultSet.cc
	database/SqlConnection.hpp
	database/SqlConnection.cc
	database/SqlDatabase.hpp
	database/SqlDatabase.inl
	database/MysqlResultSet.hpp
	database/MysqlResultSet.cc
	database/MysqlConnection.hpp
	database/MysqlConnection.cc
	
	player/Player.hpp
	player/Player.cc
	player/PlayerManager.hpp
	player/PlayerManager.cc
)

###############################################################################

include_directories( 
	${PROJECT_SOURCE_DIR}
	${Deps_INC}
	${Deps_INC}/mysql
	${Shared_INC}
)

###############################################################################

add_library(shared STATIC ${shared_SOURCES})